<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>is_date_valid (GamedayUtil)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/gameday_util.rb, line 86</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">is_date_valid</span>(<span class="ruby-identifier">month</span>, <span class="ruby-identifier">date</span>)
    <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">month</span> <span class="ruby-operator">==</span> <span class="ruby-value">4</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">date</span> <span class="ruby-operator">==</span> <span class="ruby-value">31</span>) <span class="ruby-operator">||</span>  
       (<span class="ruby-identifier">month</span> <span class="ruby-operator">==</span> <span class="ruby-value">6</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">date</span> <span class="ruby-operator">==</span> <span class="ruby-value">31</span>) <span class="ruby-operator">||</span>
       (<span class="ruby-identifier">month</span> <span class="ruby-operator">==</span> <span class="ruby-value">9</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">date</span> <span class="ruby-operator">==</span> <span class="ruby-value">31</span>)
       <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
    <span class="ruby-keyword kw">end</span>
    <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">month</span><span class="ruby-operator">==</span><span class="ruby-value">4</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">date</span><span class="ruby-operator">&lt;</span><span class="ruby-value">5</span> <span class="ruby-comment cmt"># start from 4/5 onward</span>
      <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
    <span class="ruby-keyword kw">end</span>
    <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>